{% extends 'theme/default/template/master.html' %}

{%load comm_extras %}

{% block title %}Tag “{{tag.name}}” 的电影 - {% endblock %}

{% block head_soruce %}
	<link type="text/css" rel="stylesheet" href="/static/theme/default/css/index.css">
	<script src="/static/theme/default/js/index.js" type="text/javascript"></script> 
{% endblock %}

{% block main_content %}
	<h1>Tag: {{tag.name}}</h1>
	<div class="movie-list clearfix">
	{%for movie in movies %}
		<div class="item">
			 <h4 class="title"><a target="_blank" href="{%url play-movie movie.id %}">{{movie.title}}</a></h4>
			 <div class="pic">
				<a class="cover-a" target="_blank" href="{%url play-movie movie.id %}" ><img src="{{movie.main_pic}}" class="cover"></a>
				<div class="introHide">{{movie.introduction|rn_to_br|safe}}</div>
			 </div>
			 <div class="info">
				 <ul>
					 <!-- <li class="title"><a target="_blank" href="{%url play-movie movie.id %}">{{movie.title}}</a></li> -->
					 <li>{%if movie.douban.url %}<a target="_blank" href="{{movie.douban.url}}" title="去豆瓣查看电影详细信息">豆瓣</a>{%else%}豆瓣{%endif%}: 
					 <span class="allstar{{movie.douban_rating|rating_star}}"><em class="rating_nums">{{movie.douban_rating}}</em></span></li>
					 {% if movie.mtime_rating %}
					 <li>{%if movie.mtime.url %}<a target="_blank" href="{{movie.mtime.url}}" title="去Mtime(时光网)查看电影详细信息">Mtime</a>{%else%}Mtime{%endif%}: <span class="allstar{{movie.mtime_rating|rating_star}}"><em class="rating_nums">{{movie.mtime_rating}}</em></span></li>{% endif %}
					 {% if movie.imdb_rating %}<li>IMDB: <span class="allstar{{movie.imdb_rating|rating_star}}"><em class="rating_nums">{{movie.imdb_rating}}</em></span></li>{% endif %}
					 <li>{{movie.launch_date}} {{movie.area}}</li>
					 <li>导演: {{movie.director}}</li>
					 <li>主演: {{movie.stars}} </li>
				 </ul>
			 </div>
			 <div class="opt">
				{%for playurl in movie.playurl_set.all %}
				<a title="点击使用{{playurl.source}}的源播放" target="_blank" href="{%url play-movie movie.id %}?pu={{playurl.id}}" class="playbtn">
					<img src="/static/common/images/source/{{playurl.source}}.gif" />播放
				</a>
				{%endfor%}
			 </div>
		</div>
	{%endfor%}
	</div>
	{% paginator 5 %}
{% endblock %}